import unittest
from parameterized import parameterized
from unittest_study.tools import add,read_json_data
#准备测试数据
data=read_json_data()

class TestAdd(unittest.TestCase):
    @parameterized.expand(data)
    def test_add(self,a,b,expected):
        self.assertEqual(expected,add(a,b))
if __name__ == '__main__':
    unittest.main()
